import { likeInfo } from "@/type/like"
import request from "@/utils/request"

//点赞课程
export const likeCourse=(data:likeInfo)=>{
    return request({
        url:'/likes',
        method:'post',
        data
    })
}

//查询当前用户点赞的课程
export const getLikeCourses=()=>{
    return request({
        url:'likes',
        method:'get'
    })
}